package lbm;

import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;

public class TestCollectionNull {

    public static void main(String[] args) {
        ArrayList<String> strList1 = new ArrayList<>();
        ArrayList<String> strList2 = null;

        //System.out.println(strList.isEmpty());
        System.out.println(CollectionUtils.isNotEmpty(strList1));
        System.out.println(CollectionUtils.isNotEmpty(strList2));

        System.out.println(CollectionUtils.isEmpty(strList1));
        System.out.println(CollectionUtils.isEmpty(strList2));
    }

}
